﻿using System;

namespace Teigha.TD
{
	public class OdDbGroupIterator_Internal : OdDbGroupIterator
	{
		public OdDbGroupIterator_Internal(IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
		{
		}

		public override OdDbObject getObject(OpenMode openMode)
		{
			return new OdDbObject(TD_DbPINVOKE.OdDbGroupIterator_getObject(OdDbGroupIterator.getCPtr(this), (int)openMode), false);
		}

		public override OdDbObjectId objectId()
		{
			return new OdDbObjectId(TD_DbPINVOKE.OdDbGroupIterator_objectId(OdDbGroupIterator.getCPtr(this)), false);
		}

		public override bool done()
		{
			return TD_DbPINVOKE.OdDbGroupIterator_done(OdDbGroupIterator.getCPtr(this));
		}

		public override bool next()
		{
			return TD_DbPINVOKE.OdDbGroupIterator_next(OdDbGroupIterator.getCPtr(this));
		}
	}
}
